'''
Created on Dec 13, 2009

@author: Juan Catalano - Alberto Pose
'''
from threading import Thread
from urllib import urlopen
from songmetadata import SongMetaData
class MetaDataFetcher(Thread):
    '''
    classdocs
    '''

    def __init__(self, url, xml_list):
        Thread.__init__(self)
        self.url = url
        self.xml_list = xml_list
        

    def run(self,xml_list=[]):
        xml_meta = urlopen( self.url )
        self.xml_list.append(SongMetaData(''.join(xml_meta.readlines())))

